package com.xsz.entity;




public class User {
    private String id;

    private String age;

    private String email;

    private String mobile;

    private String name;

    private String pwd;

    private String realname;

    private Integer role;

    private String sex;

    private String salt;


    /**
     * 密码盐. * @return
     * 这个方法重新对盐重新进行了定义，用户名+salt，这样就更加不容易被破解了。
     */
    public String getCredentialsSalt(){
        return this.name+this.salt;

    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

//    public String getChinaid() {
//        return chinaid;
//    }
//
//    public void setChinaid(String chinaid) {
//        this.chinaid = chinaid;
//    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }
}